<include file="public@header"/>
<style type="text/css">
    .pic-list li {
        margin-bottom: 5px;
    }
</style>
<script type="text/html" id="photos-item-tpl">
    <li id="saved-image{id}">
        <input id="photo-{id}" type="hidden" name="photo_urls[]" value="{filepath}">
        <input class="form-control" id="photo-{id}-name" type="text" name="photo_names[]" value="{name}"
               style="width: 200px;" title="图片名称">
        <img id="photo-{id}-preview" src="{url}" style="height:36px;width: 36px;"
             onclick="imagePreviewDialog(this.src);">
        <a href="javascript:uploadOneImage('图片上传','#photo-{id}');">替换</a>
        <a href="javascript:(function(){$('#saved-image{id}').remove();})();">移除</a>
    </li>
</script>
<script type="text/html" id="files-item-tpl">
    <li id="saved-file{id}">
        <input id="file-{id}" type="hidden" name="file_urls[]" value="{filepath}">
        <input class="form-control" id="file-{id}-name" type="text" name="file_names[]" value="{name}"
               style="width: 200px;" title="文件名称">
        <a id="file-{id}-preview" href="{preview_url}" target="_blank">下载</a>
        <a href="javascript:uploadOne('文件上传','#file-{id}','file');">替换</a>
        <a href="javascript:(function(){$('#saved-file{id}').remove();})();">移除</a>
    </li>
</script>
</head>
<body>
<div class="wrap js-check-wrap">

    <ul class="nav nav-tabs">
        <li><a href="{:url('project/process')}?id={$id}">开发需求确认表</a></li>
        <li><a href="{:url('project/customerChangeOpinion')}?id={$id}">客户变更意见列表</a></li> 
        <li  class="active"><a href="{:url('project/changeOpinion')}?id={$id}">变更列表</a></li> 
        <li><a href="{:url('project/effectImgConfirm')}?id={$id}">PC效果图确认</a></li> 
        <li><a href="{:url('project/mobileImg')}?id={$id}">移动端效果图确认</a></li> 
        <li><a href="{:url('project/check')}?id={$id}">验收</a></li> 
        <li><a href="{:url('project/deliver')}?id={$id}">交付文档</a></li> 
    </ul>
    <br>
             
        <div class="row">
            <div class="col-md-12">
               <table class="table table-bordered" style="border: none;text-align:center;">
                    <tr>
                        <td style="font-weight: bold;">ID</td>
                        <td style="font-weight: bold;">申请时间</td>
                        <td style="font-weight: bold;">申请人</td>
                        <td style="font-weight: bold;">变更内容</td>
                        <td style="font-weight: bold;">解决方案</td>
                        <td style="font-weight: bold;">影响范围</td>
                        <td style="font-weight: bold;">难度</td>
                        <td style="font-weight: bold;">增加工时</td>
                        <td style="font-weight: bold;">费用</td>
                        <td style="font-weight: bold;">客户确认状态</td>
                        <td style="font-weight: bold;">操作</td>
                    </tr>  
                    <foreach name='result' item='vo' key='k'>                
                        <tr>
                            <td>{$k+1}</td>
                            <td><?php echo date('Y-m-d H:i:s',$vo['apply_time']);?></td>
                            <td>{$vo.customer_name}</td>
                            <td>{$vo.change_content}</td>
                            <td>{$vo.solve_content}</td>
                            <td>{$vo.effect_content}</td>
                            <td>{$vo.difficulty}</td>
                            <td>{$vo.add_working_hours}</td>
                            <td>{$vo.cost}</td>
                            <td>
                                <?php
                                    if($vo['status'] =='1')
                                    {
                                        echo '未确认';
                                    }else
                                    {
                                        echo '已确认';
                                    }
                                ?>
                            </td>
                            <td>
                                <?php
                                    if($vo['status'] =='1')
                                    {                                   
                                ?>
                                <a href="javascript:;" onclick="solution_edit({$vo.id},{$id});">编辑</a></td>
                                <?php
                                    }else{ echo ''; }
                                ?>                
                        </tr>
                    </foreach>
                </table>       
            </div>

        </div>
         
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
    //编辑器路径定义
    var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>


</body>
</html>
<script>
     function solution_edit(id,project_id)
    {
        openIframeLayer("{:url('project/solutionEdit')}?id="+id+'&project_id='+project_id, '编辑', {
            area: ['60%;', '98%;'],
            btn: ['关闭'],
            yes: function (index, layero) {            
                layer.close(index); //如果设定了yes回调，需进行手工关闭
            }
        });
    }
</script>
